#! /bin/bash


cd workspace/fusion
javac -Xlint:unchecked -cp poounit.jar  src/tec/*.java  src/poounit/*.java -d build
jar cf fusion.jar -C ./build/ tec/ 
cp fusion.jar ../../recette/
javac -Xlint:unchecked -cp fusion.jar:poounit.jar  src/poounit/*.java -d build 
jar cf poounit.jar -C ./build/ poounit/ 
cp poounit.jar ../../recette/
javac -Xlint:unchecked -cp poounit.jar:fusion.jar -sourcepath src/tec/*.java:../../recette/Simple.java  -d ../../recette  ../../recette/Simple.java
cd ../../recette
java -ea -cp fusion.jar:poounit.jar:./ Simple
if test -r log.txt
then
    mv log.txt ../
fi
